package com.bruce.pattern.creational.builder;

/**
 * Created by bruce on 2018/11/2 20:54
 */
public class Coach {

    private CourseAbstractBuilder builder;

    public void setBuilder(CourseAbstractBuilder builder) {
        this.builder = builder;
    }

    public Course makeCourse(String courseName,
                             String coursePPT,
                             String courseVideo,
                             String courseArticle,
                             String courseQA) {
        return builder.courseName(courseName)
                .coursePPT(coursePPT)
                .courseVideo(courseVideo)
                .courseArticle(courseArticle)
                .courseQA(courseQA)
                .build();
    }


}
